home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
asprog.EXE
/
WHOOPERS.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-11-26
|
748b
|
35 lines
seg_a segment byte public
assume cs:seg_a, ds:seg_a
org 100h
whoopers proc far
start: jmp short real_start
real_start: mov bx,1388h
mov al,0B6h
out 43h,al ; port 43h, 8253 timer control
loc_1: mov ax,bx
out 42h,al ; port 42h, 8253 timer 2 spkr
mov al,ah
out 42h,al ; port 42h, 8253 timer 2 spkr
in al,61h ; port 61h, 8255 port B, read
or al,3
out 61h,al ; port 61h, 8255 B - spkr, etc
mov cx,32h
locloop_2: loop locloop_2 ; Loop if cx > 0
dec bx
jnz loc_1 ; Jump if not zero
in al,61h ; port 61h, 8255 port B, read
and al,0FCh
out 61h,al ; port 61h, 8255 B - spkr, etc
mov ax,4Ch
int 21h
whoopers endp
seg_a ends
end start